#!/bin/sh

# If a command fails then the deploy stops
set -e

printf "\033[0;32mDeploying updates to Gitee...\033[0m\n"

# Commit changes.
msg="updata $(date)"
if [ -n "$*" ]; then
	msg="$*"
fi

# Add changes to git.
git add .

git commit -m "$msg"

# Push source and build repos.
git push origin master